package com.jiangyao.dao;

import com.jiangyao.model.entity.QuestionDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jiangyao.model.vo.QuestionDetailVO;
import com.jiangyao.model.vo.backend.QuestionItemVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 试题明细 Mapper 接口
 * </p>
 *
 * @author zhoushuangxiang
 * @since 2020-08-18
 */
public interface IQuestionDetailDao extends BaseMapper<QuestionDetail> {

    List<QuestionDetailVO> selectDetailList(String questionId);

    /**
     * 获取题目列表与题目选项
     *
     * @param questionId 试题ID
     * @return 结果
     */
    List<QuestionItemVO> getListAndChooseList(@Param("questionId") Integer questionId);
}
